import request from '@/utils/request'

const fetchCates = (params = {}) => (
  request.get('/partLists', { params })
)

const delCates = (params = {}) => (
  request.delete('/delPart', { params })
)

const updateCates = (params = {}) => (
  request.put('/updateCate', params)
)

const addCates = (params = {}) => (
  request.post('/addPartList', params)
)

export {
  fetchCates,
  delCates,
  updateCates,
  addCates
}